package com.harry.home.wordpicture.Fragment;


import android.os.Bundle;

import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.SimpleAdapter;

import com.harry.home.wordpicture.R;

import java.util.List;

public class MyFragment extends Fragment {
    //<!--我的收藏  我的下载  推介给好友 给个好评 设置-->
    private ListView listView;


    private String[] array = {"我的收藏","我的下载","推介给好友","给个好评","设置"};
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        View v = inflater.inflate(R.layout.fragment_my,container,false);
        listView = (ListView) v.findViewById(R.id.lv);
        Log.i("lala",getContext().toString());
        ArrayAdapter<String> adapter = new ArrayAdapter<String>(getContext(),android.R.layout.simple_list_item_1,array);
        listView.setAdapter(adapter);
        return v;
    }
}
